<!DOCTYPE html>
<html lang="sr">
<head>
    <title><?= $settings['naziv'] ?><?= $this->getLayoutTitle() ?></title>

    <meta charset="utf-8">
    <meta name="keywords" content="<?= $settings['kljucne_reci'] ?>">
    <meta name="description" content="<?= $settings['opis'] ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <link rel="stylesheet" type="text/css" href="/css/style.css">
    <script type="text/javascript" src="/js/jquery-2.0.3.min.js"></script>
    <script type="text/javascript" src="/js/script.js"></script>

    <?= $this->layoutStyles ?>
    <?= $this->layoutScripts ?>
</head>

<body itemscope itemtype="http://schema.org/LocalBusiness" style="background-image:url(/img/background/<?= $bodyBackground ?>)">
<header>
    <div class="width-wrap">
        <?= $this->helpHtml->image('srbelektro.png', array(
            'link' => array(
                'href' => '/',
                'id'   => 'logo'
            ),
            'width'  => 270,
            'height' => 128,
            'alt'    => $settings['naziv']
        )) ?>

        <menu>
        <? foreach ($menu as $i=>$page): ?>
            <li class="item<?= $i ?> index<?= count($menu)-$i ?><?= $page['active'] ? ' active' : '' ?>">            
                <a href="<?= $page['link'] ?>"><?= $page['title'] ?></a>
            </li>
        <? endforeach ?>
        </menu>
    </div>
</header>
<section id="main" class="width-wrap"><?= $__content ?></section>
<footer>
        <span itemprop="name"><?= $settings['naziv'] ?></span> &middot;
        <span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
            <span itemprop="streetAddress"><?= $settings['adresa'] ?></span>,
            <span itemprop="postalCode"><?= $settings['postanski_broj'] ?></span>
            <span itemprop="addressLocality"><?= $settings['grad'] ?></span>
        </span> &middot;
        <span itemprop="telephone"><?= $settings['mobilni'] ?></span>,
        <span itemprop="telephone"><?= $settings['telefon'] ?></span> &middot;
        <span itemprop="url">www.<?= preg_replace('/^w+\./', '', \Lib\Request::server()) ?></span>
    </footer>
</body>
</html>